<template>
    <p>作用域插槽</p>
    <p>父组件</p>
    <h3>下面是Son组件的内容</h3>
    <Son v-slot="slotprops">
        <p>儿子的名字是bob {{ slotprops.sonname }}</p>
    </Son>
    <p>Slot解构</p>
    <Son v-slot="slotprops">
        <p>儿子的名字是bob {{ slotprops.sonname }}</p>
    </Son>
    <p>Bob 儿子</p>
</template>

<script>
import Son from "./Son.vue";
import BobSon from "./BobSon.vue";
export default {}
components: {
    Son
    BobSon
}

</script>

